<template>
	<view class="page">
		<rich-text :nodes="utils.formatRichText(detail.content)"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: [],
			};
		},
		onLoad: function(options) {
			this.utils.hideShare()
			this.http('faq/detail', {
				id: options.id
			}, 'get').then(res => {
				uni.setNavigationBarTitle({
					title: res.data.name
				});
				this.detail = res.data;
			});
		},
		methods: {

		}
	};
</script>

<style lang="scss">
	.page {
		padding: 5px;
		background-color: #fff;
	}
</style>
